package bean;

import essenceClasses.Task;
import helper.TaskHelper;

import java.util.List;

/**
 * Created by user on 15.06.14.
 */
public class TasksBean {
    private int access;
    private List<Task> listTask;

    public int getAccess() {
        return access;
    }

    public void setAccess(int access) {
        this.access = access;
    }

    public List<Task> getListTask() {
        return listTask;
    }

    public void setListTask(List<Task> listTask) {
        this.listTask = listTask;
    }

    public void setTasks(boolean bool) {
        List<Task> list = new TaskHelper().getAllTask(this.access);
        if (list != null) {
            listTask = list;
        }
    }
}
